package com.wl.dzt.oss;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author wl_code@163.com
 * @version 1.0
 * @date 2018/7/9/009
 * @description 云存储配置信息
 */
@Component
@Configuration
@PropertySource(value = {"classpath:/oss/oss-config.properties"}, encoding = "UTF-8", ignoreResourceNotFound = true)
public class OSSConfig implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 类型 1：阿里云  2：七牛  3：腾讯云
     */
    @Value("${oss.type}")
    private String type;

    /**
     * 阿里云绑定的域名
     */
    @Value("${oss.aliyun.aliyunDomain}")
    private String aliyunDomain;
    /**
     * 阿里云路径前缀
     */
    @Value("${oss.aliyun.aliyunPrefix}")
    private String aliyunPrefix;
    /**
     * 阿里云EndPoint
     */
    @Value("${oss.aliyun.aliyunEndPoint}")
    private String aliyunEndPoint;
    /**
     * 阿里云AccessKeyId
     */
    @Value("${oss.aliyun.aliyunAccessKeyId}")
    private String aliyunAccessKeyId;
    /**
     * 阿里云AccessKeySecret
     */
    @Value("${oss.aliyun.aliyunAccessKeySecret}")
    private String aliyunAccessKeySecret;
    /**
     * 阿里云BucketName
     */
    @Value("${oss.aliyun.aliyunBucketName}")
    private String aliyunBucketName;

    /**
     * 七牛绑定的域名
     */
    @Value("${oss.qiniu.qiniuDomain}")
    private String qiniuDomain;
    /**
     * 七牛路径前缀
     */
    @Value("${oss.qiniu.qiniuPrefix}")
    private String qiniuPrefix;
    /**
     * 七牛ACCESS_KEY
     */
    @Value("${oss.qiniu.qiniuAccessKey}")
    private String qiniuAccessKey;
    /**
     * 七牛SECRET_KEY
     */
    @Value("${oss.qiniu.qiniuSecretKey}")
    private String qiniuSecretKey;
    /**
     * 七牛存储空间名
     */
    @Value("${oss.qiniu.qiniuBucketName}")
    private String qiniuBucketName;

    /**
     * 腾讯云绑定的域名
     */
    @Value("${oss.tx.qcloudDomain}")
    private String qcloudDomain;
    /**
     * 腾讯云路径前缀
     */
    @Value("${oss.tx.qcloudPrefix}")
    private String qcloudPrefix;
    /**
     * 腾讯云AppId
     */
    @Value("${oss.tx.qcloudAppId}")
    private String qcloudAppId;
    /**
     * 腾讯云SecretId
     */
    @Value("${oss.tx.qcloudSecretId}")
    private String qcloudSecretId;
    /**
     * 腾讯云SecretKey
     */
    @Value("${oss.tx.qcloudSecretKey}")
    private String qcloudSecretKey;
    /**
     * 腾讯云BucketName
     */
    @Value("${oss.tx.qcloudBucketName}")
    private String qcloudBucketName;
    /**
     * 腾讯云COS所属地区
     */
    @Value("${oss.tx.qcloudRegion}")
    private String qcloudRegion;


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAliyunDomain() {
        return aliyunDomain;
    }

    public void setAliyunDomain(String aliyunDomain) {
        this.aliyunDomain = aliyunDomain;
    }

    public String getAliyunPrefix() {
        return aliyunPrefix;
    }

    public void setAliyunPrefix(String aliyunPrefix) {
        this.aliyunPrefix = aliyunPrefix;
    }

    public String getAliyunEndPoint() {
        return aliyunEndPoint;
    }

    public void setAliyunEndPoint(String aliyunEndPoint) {
        this.aliyunEndPoint = aliyunEndPoint;
    }

    public String getAliyunAccessKeyId() {
        return aliyunAccessKeyId;
    }

    public void setAliyunAccessKeyId(String aliyunAccessKeyId) {
        this.aliyunAccessKeyId = aliyunAccessKeyId;
    }

    public String getAliyunAccessKeySecret() {
        return aliyunAccessKeySecret;
    }

    public void setAliyunAccessKeySecret(String aliyunAccessKeySecret) {
        this.aliyunAccessKeySecret = aliyunAccessKeySecret;
    }

    public String getAliyunBucketName() {
        return aliyunBucketName;
    }

    public void setAliyunBucketName(String aliyunBucketName) {
        this.aliyunBucketName = aliyunBucketName;
    }

    public String getQiniuDomain() {
        return qiniuDomain;
    }

    public void setQiniuDomain(String qiniuDomain) {
        this.qiniuDomain = qiniuDomain;
    }

    public String getQiniuPrefix() {
        return qiniuPrefix;
    }

    public void setQiniuPrefix(String qiniuPrefix) {
        this.qiniuPrefix = qiniuPrefix;
    }

    public String getQiniuAccessKey() {
        return qiniuAccessKey;
    }

    public void setQiniuAccessKey(String qiniuAccessKey) {
        this.qiniuAccessKey = qiniuAccessKey;
    }

    public String getQiniuSecretKey() {
        return qiniuSecretKey;
    }

    public void setQiniuSecretKey(String qiniuSecretKey) {
        this.qiniuSecretKey = qiniuSecretKey;
    }

    public String getQiniuBucketName() {
        return qiniuBucketName;
    }

    public void setQiniuBucketName(String qiniuBucketName) {
        this.qiniuBucketName = qiniuBucketName;
    }

    public String getQcloudDomain() {
        return qcloudDomain;
    }

    public void setQcloudDomain(String qcloudDomain) {
        this.qcloudDomain = qcloudDomain;
    }

    public String getQcloudPrefix() {
        return qcloudPrefix;
    }

    public void setQcloudPrefix(String qcloudPrefix) {
        this.qcloudPrefix = qcloudPrefix;
    }

    public String getQcloudAppId() {
        return qcloudAppId;
    }

    public void setQcloudAppId(String qcloudAppId) {
        this.qcloudAppId = qcloudAppId;
    }

    public String getQcloudSecretId() {
        return qcloudSecretId;
    }

    public void setQcloudSecretId(String qcloudSecretId) {
        this.qcloudSecretId = qcloudSecretId;
    }

    public String getQcloudSecretKey() {
        return qcloudSecretKey;
    }

    public void setQcloudSecretKey(String qcloudSecretKey) {
        this.qcloudSecretKey = qcloudSecretKey;
    }

    public String getQcloudBucketName() {
        return qcloudBucketName;
    }

    public void setQcloudBucketName(String qcloudBucketName) {
        this.qcloudBucketName = qcloudBucketName;
    }

    public String getQcloudRegion() {
        return qcloudRegion;
    }

    public void setQcloudRegion(String qcloudRegion) {
        this.qcloudRegion = qcloudRegion;
    }

}
